package top.lyjwn.ajui.widget.recycler;

import android.content.Context;
import android.util.AttributeSet;

import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import top.lyjwn.ajui.widget.recycler.base.IRecyclerView;

/**
 * 可回收的垂直视图
 *
 * @author luoyujie
 */
public class RecyclerVerticalView extends IRecyclerView {

    private LinearLayoutManager layoutManager;


    public RecyclerVerticalView(Context context) {
        super(context);
        init();
    }

    public RecyclerVerticalView(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
        init();

    }

    private void init() {
        layoutManager = new LinearLayoutManager(getContext());
        layoutManager.setOrientation(LinearLayoutManager.VERTICAL);
        setLayoutManager(layoutManager);
    }



}
